/*
 * Author: Edgar Wang
 * Date: Tue Aug  6 17:07:22 CST 2013
 */
#include <stdio.h>

/* Bit Set */
int bis(int x, int m)
{
	int result = x | m;
	return result;
}

/* Bit Clear */
int bic(int x, int m)
{
	int result = (~m) & x;
	return result;
}

int main(void)
{
	int x1 = 0x00;
	int x2 = 0x01;
	int m = 0x01;

	printf("%X\n", bis(x1, m));
	printf("%X\n", bic(x2, m));

	return 0;
}
